SpatialStream® Code Examples

Key Query with Attribute Chaining

Attribute Chaining is the process of linking data by a shared value key between layers within an account. This example demonstrates the use of Attribute Chaining by selecting a school district from the School District layer and public schools from the Public School layer in a single call based on the attribute link of District.

The primary benefit of using Attribute Chaining is the ability to use attribute relationships to tie together disparate datasets based on attribute links, all in a single call and with minimal code.

GetByKey | Attribute Chaining

var url = "GetByKey.aspx?";
url += "dataSource=ACCOUNT_FOLDER/SchoolDistrict";
url += "&fields=*,PublicSchoolDistrictLink(*)";
url += "&keyName=DISTRICT";
url += "&keyValue=" + district;


Run Sample   View Video   Back To Index